Skip to content

Define Python_FIND_VIRTUALENV in addition to Python3_FIND_VIRTUALENV #4004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

dbabokin
Copy link
Contributor

@dbabokin dbabokin commented Feb 7, 2025

MLIR searches for both Python3 and Python. If both variables are not defined equally and there multiple python versions on the system, CMake may behave really weirdly.

More details here: llvm/llvm-project#126162

So I grepped for all instances of Python3_FIND_VIRTUALENV and added similar Python_FIND_VIRTUALENV definition.

@dbabokin
Copy link
Contributor Author

dbabokin commented Feb 8, 2025

The fails in the CI are unrelated to the changes in this PR and they show up in other PR as well.

@dbabokin
Copy link
Contributor Author

All green. Need someone to review and approve.

@marbre
Copy link
Member

marbre commented Apr 30, 2025

Thanks @dbabokin! Can you resolve the conflicts thus we can merge this? I guess we could also set the one option based on the other a little deeper in CMake world? But this also works for me.

@marbre marbre requested review from marbre and ScottTodd April 30, 2025 13:20
MLIR searches for both Python3 and Python. If both variables are not
defined equally and there multiple python version on the system, CMake
may behave really weirdly.

More details here: llvm/llvm-project#126162
@dbabokin
Copy link
Contributor Author

I've updated the PR, sorry for such long response time. The fix seem to be still relevant.

CI fails are really weird - looks like Github a broken 😨 I suggest re-running CI jobs.

@ScottTodd
Copy link
Member

CI fails are really weird - looks like Github a broken 😨 I suggest re-running CI jobs.

Indeed. They succeeded on a retry.

@ScottTodd ScottTodd merged commit 716303a into llvm:main May 27, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants